<template>
<div>
  <el-table :data="AddressList" stripe style="width: 100%">
    <el-table-column prop="pName" label="名称" ></el-table-column>
    <el-table-column prop="name" label="具体地址" ></el-table-column>
    <el-table-column prop="address" label="地址">  </el-table-column>
<!--    <el-table-column prop="createTime" label="时间"></el-table-column>-->
  </el-table>
</div>
</template>

<script>
export default {
  name: 'address',
  data () {
    return {
      AddressList: []
    }
  },

  mounted () {
    this.finaAllAddress()
  },
  methods: {
    async finaAllAddress () {
      const { data: res } = await this.$http.get('address/finaAllAddress')
      if (res.code !== 200) {
        return this.$message.error(res.msg)
      }
      this.AddressList = res.data
      console.log(this.AddressList)
    }
  }

}
</script>

<style scoped>

</style>
